Skip to content

Measuring Root Mass updated results#362

Open
marcodallavecchia wants to merge 3 commits intodatacarpentry:mainfrom
marcodallavecchia:root-mass-reproducibility
Open

Measuring Root Mass updated results#362
marcodallavecchia wants to merge 3 commits intodatacarpentry:mainfrom
marcodallavecchia:root-mass-reproducibility

Conversation

@marcodallavecchia
Copy link
Contributor

This PR addresses #351 by re-running the existing code on the same test data with the latest version of the environment packages described in episodes/files/environment.yml.

Here's what I've done:

  1. Installed a fresh environment with conda env create --file episodes/files/environment.yml
  2. Activate the environment conda activate dc-image
  3. Re-run code block from Application: measuring root mass

These steps result in slightly different values than the ones we have currently on the webpage. I updated both the single value in line 515 and the output block lines 535-540 in episodes/07-thresholding.md with the new values.

Because the print order of the files was non-alphabetical in my case, I took the freedom to add sorted in line 528, to ensure alphabetical ordering of the print statements.

Finally, I added a callout block below the output to highlight the challenges of a reproducible environment. Please let me know if you like the way it's phrased and laid out.

I re-rendered the website locally before pushing to verify everything rendered correctly.

@github-actions
Copy link

github-actions bot commented Mar 23, 2026

Thank you!

Thank you for your pull request 😃

🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

  • 🎯 correct output
  • 🖼️ correct figures
  • ❓ new warnings
  • ‼️ new errors

Rendered Changes

🔍 Inspect the changes: https://github.com/datacarpentry/image-processing/compare/md-outputs..md-outputs-PR-362

The following changes were observed in the rendered markdown documents:

 07-thresholding.md | 32 ++++++++++++++++++++------------
 md5sum.txt         |  2 +-
 2 files changed, 21 insertions(+), 13 deletions(-)
What does this mean?

If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible.

This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

⏱️ Updated at 2026-03-24 20:18:48 +0000

github-actions bot pushed a commit that referenced this pull request Mar 23, 2026
Copy link
Contributor

@uschille uschille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @marcodallavecchia! This looks good, I am getting the same results on my end.

@uschille uschille linked an issue Mar 23, 2026 that may be closed by this pull request
@marcodallavecchia
Copy link
Contributor Author

Thank you @uschille! I can go ahead and merge it if you want, or should we wait for @K-Meech?

Copy link
Contributor

@K-Meech K-Meech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @marcodallavecchia - looks great! Really like your reproducibility explanation.

There were a few other places in the lesson I found slightly different - not sure if you want to update those too for the sake of completeness?

  • In the 'Automatic thresholding' section, I had a slightly different value for the Found automatic threshold t = 0.4172454549881862. line
  • In the challenge solution for 'Ignoring more of the images - implementation', the printed values per file were also slightly different

@marcodallavecchia
Copy link
Contributor Author

Thanks a lot for the thoroughness @K-Meech! I clearly missed other spots where those values might have been different. I tried to go through it one more time, and I updated the ones you mentioned but found no additional ones.

Let me know what you think now!

github-actions bot pushed a commit that referenced this pull request Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reproducibility of results for "Measuring root mass" example

3 participants